#!/bin/bash

if [ "$1" = "-h" ];then
    echo "./mkfilesys.sh project"
    echo "----------------------"
    ls tools -1 | grep -v sh
    echo "======================"
    exit
fi

G_PRO_NAME="$1"
G_CHIP_NAME="`pwd | awk -F 'filesystem/' '{ print $2 }'`"

if [ "$1" != "" ]; then
    ../oem_filesystem.sh $G_CHIP_NAME $G_PRO_NAME
fi
../com_squashfs_mk.sh $G_CHIP_NAME $G_PRO_NAME

